//
//  Const.h
//  paces_ccms_ios
//
//  Created by caiqilin on 15/11/17.
//  Copyright © 2015年 caiqilin. All rights reserved.
//

/*** 评论-头部控件-字体 ***/
#define MPCommentSectionHeaderFont [UIFont systemFontOfSize:15]

/*** 当前系统版本判断 ***/
#define iOS(version) ([UIDevice currentDevice].systemVersion.doubleValue >= (version))

/*** 将服务器返回的数据写入plist ***/
#define MPWriteToPlist(data, filename) [data writeToFile:[NSString stringWithFormat:@"/Users/xiaomage/Desktop/%@.plist", filename] atomically:YES];

/*** 日志 ***/
#ifdef DEBUG
#define NSLog(...) NSLog(__VA_ARGS__)
#else
#define NSLog(...)
#endif

#define NSLogFunc NSLog(@"%s", __func__);

/*** 颜色 ***/
#define EXColorA(r, g, b, a) [UIColor colorWithRed:(r)/255.0 green:(g)/255.0 blue:(b)/255.0 alpha:(a)/255.0]
#define EXColor(r, g, b) EXColorA((r), (g), (b), 255)
#define EXRandomColor EXColor(arc4random_uniform(255), arc4random_uniform(255), arc4random_uniform(255))
#define EXGrayColor(v) EXColor((v), (v), (v))
#define EXCommonBgColor EXGrayColor(206)

#define SCREEN_WIDTH  ([UIScreen mainScreen].bounds.size.width)
#define SCREEN_HEIGHT ([UIScreen mainScreen].bounds.size.height)



